using HuiLian.Common.Input;
using HuiLian.Service.Platform.Sponsorship.Input;
using HuiLian.Common.Output;
using HuiLian.Model.Platform;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace HuiLian.Service.Platform.Sponsorship
{
    /// <summary>
    /// 协办单接口
    /// </summary>
    public interface ISponsorshipService
    {
        /// <summary>
        /// 获取协办单信息
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<IResponseOutput> GetAsync(long id);

        /// <summary>
        /// 查询协办单信息
        /// </summary>
        /// <param name="input">分页信息</param>
        /// <returns></returns>
        Task<IResponseOutput> PageAsync(PageInput<SponsorshipEntity> input);

        /// <summary>
        /// 添加协办单信息
        /// </summary>
        /// <param name="input">协办单信息</param>
        /// <returns></returns>
        Task<IResponseOutput> AddAsync(SponsorshipAddInput input);

        /// <summary>
        /// 更新协办单信息
        /// </summary>
        /// <param name="input">协办单信息</param>
        /// <returns></returns>
        Task<IResponseOutput> UpdateAsync(SponsorshipUpdateInput input);

        /// <summary>
        /// 删除协办单信息
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<IResponseOutput> DeleteAsync(long id);

        /// <summary>
        /// 软删除协办单信息
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<IResponseOutput> SoftDeleteAsync(long id);

        /// <summary>
        /// 批量软删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<IResponseOutput> BatchSoftDeleteAsync(long[] ids);

        /// <summary>
        /// 添加列表
        /// </summary>
        /// <param name="sponsorships"></param>
        /// <returns></returns>
        Task<IResponseOutput> AddListAsync(List<SponsorshipEntity> sponsorships);

        Task<IResponseOutput> UpdateTime(List<SponsorshipEntity> sponsorships);
    }
}
